package com.xiaozhengkeji.xiaozhengblog.base.service;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.xiaozhengkeji.xiaozhengblog.base.entitys.SystemUserEntity;
import java.util.List;
import com.xiaozhengkeji.xiaozhengblog.base.mapper.SystemUserEntityMapper;

@Service
public class SystemUserEntityService {

    @Resource
    private SystemUserEntityMapper systemUserEntityMapper;


    public int deleteByPrimaryKey(Integer id) {
        return systemUserEntityMapper.deleteByPrimaryKey(id);
    }


    public int insert(SystemUserEntity record) {
        return systemUserEntityMapper.insert(record);
    }


    public int insertSelective(SystemUserEntity record) {
        return systemUserEntityMapper.insertSelective(record);
    }


    public SystemUserEntity selectByPrimaryKey(Integer id) {
        return systemUserEntityMapper.selectByPrimaryKey(id);
    }


    public int updateByPrimaryKeySelective(SystemUserEntity record) {
        return systemUserEntityMapper.updateByPrimaryKeySelective(record);
    }


    public int updateByPrimaryKey(SystemUserEntity record) {
        return systemUserEntityMapper.updateByPrimaryKey(record);
    }


    public List<SystemUserEntity> queryByUsername(String username) {
        return systemUserEntityMapper.queryByUsername(username);
    }


    public List<SystemUserEntity> queryByEmail(String email) {
        return systemUserEntityMapper.queryByEmail(email);
    }


    public List<SystemUserEntity> queryByAll(SystemUserEntity systemUserEntity) {
        return systemUserEntityMapper.queryByAll(systemUserEntity);
    }

}

